package com.sen.design.pattern.structural.facade;

public class PointExchange {

    private PayService payService = new PayService();
    private PointService pointService = new PointService();
    private ShippingService shippingService = new ShippingService();


    public void pointExchange(PointGif pointGif){
        if (pointService.isAvailable(pointGif)){
            if (payService.pay(pointGif)){
                String shipping = shippingService.shipping(pointGif);
                System.out.println("物流运单号： " + shipping);
            }
        }
    }

}
